﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LogicUniversityBiz
{
    public class RetrievalListController
    {
        CoreClerkFascade fascade = new CoreClerkFascade();

        public List<CompositeReterivalData> getCompositeReterivalData()
        {
            return fascade.getRetrievalList();
        }
        public List<RetrievalDetailData> getRetrievalDetail(string item_Code, int batch_No)
        {
            return fascade.getRetrievalDetail(item_Code, batch_No);
        }
        public bool updateRetrievalDetail(List<RetrievalDetailData> result,int adjustedAmount)
        {
          return fascade.updateRetrievalDetail(result,adjustedAmount);
        }
        public List<DisbursementData> getDisbursementList()
        {
           return fascade.getDisbursementList();
        }
        public List<Retrieval_List> getDisbursementDetail(int batch_No,string dept_Code)
        {
            return fascade.getDisbursementDetail(batch_No, dept_Code);
        }
        public void addAndUpdateAdjustment(Voucher_Detail v,int batch_No,string dept_Code,string employee_ID)
        {
            fascade.addAndUpdateAdjust(v,batch_No,dept_Code,employee_ID);
        }
        public bool updateDisbursementStatus(List<Retrieval_List> retrieval_List,string employee_ID)
        {
            return fascade.updateDeptDisbusement(retrieval_List,employee_ID);
        }
        public void unDisburseRetrieval(DisbursementData data)
        {
            fascade.unDisburseRetrieval(data);
        }
    }
}
